/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Chat;


import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

/**
 *
 * @author cart2r
 */
public class Servidor {

    public static void main(String[] args) throws IOException {
        ServerSocket servidor;
        Socket cliente;
        servidor = new ServerSocket(9999);
        System.out.println("esperando cliente...");
        while(true) {
           
        cliente = servidor.accept();
         System.out.println("cliente conectado");
        ManClient mc = new ManClient(cliente);

        }

    }

   




}
